<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<%@taglib uri="/jstl/cout" prefix="c"%>
<jsp:include page="${contextPath}/common/jsp_head_new.jsp" />
<%@page import="com.infodms.dms.po.TtAsActivityEvaluatePO"%>

<head>
<%
TtAsActivityEvaluatePO evaluatePO =(TtAsActivityEvaluatePO)request.getAttribute("evaluatePO");
%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>服务活动总结查询</title>
<% String contextPath = request.getContextPath(); %>
<script type="text/javascript">
function doInit()
	{
	   loadcalendar();
	}
</script>
</head>

<body>
	<div class="navigation">
		<img src="<%=contextPath %>/img/nav.gif" />&nbsp;当前位置： 售后服务管理&gt;服务活动管理&gt;服务活动评估查询
	</div>
  <form method="post" name="fm" id="fm">
        <table  class="table_query">
          <tr>
                      
            <td class="table_query_2Col_label_5Letter">经销商代码：</td>
            <td align="left" >
                  <input  type="text" class="middle_txt" id="dealerCode" style="cursor: pointer;" name="dealerCode" />
			      <input type="button" class="mini_btn"  value="&hellip;" onclick="showOrgDealer('dealerCode','','true','',true)" />
			      <input name="button2" type="button" class="normal_btn" onclick="clr();" value="清除"/>
            </td>
            <td class="table_query_2Col_label_5Letter">经销商名称：</td>
            <td align="left" >
                  <input  type="text" class="middle_txt" id="dealerName" style="cursor: pointer;" name="dealerName" />
            </td>
          </tr>                   
          <tr>
           <td class="table_query_2Col_label_5Letter">活动编号：</td>
            <td align="left">
                   <input type="text"  name="activityCode"  id="activityCode"  class="middle_txt"  size="25" datatype="1,is_digit_letter_cn,25"/>
			</td>  
            <td class="table_query_2Col_label_5Letter">活动日期： </td>
            <td align="left">
	            <div align="left">
            	   <input name="startDate" id="t1" value="" type="text" class="short_txt" datatype="1,is_date,10" group="t1,t2" hasbtn="true" callFunction="showcalendar(event, 't1', false);"/>
            	  至<input name="endDate" id="t2" value="" type="text" class="short_txt" datatype="1,is_date,10" group="t1,t2" hasbtn="true" callFunction="showcalendar(event, 't2', false);"/>
            	</div>	
			</td>
          </tr>
		  <tr>	
			  <td align="center" colspan="4">
	              <input class="normal_btn" type="button" name="button1" value="查询" onclick="__extQuery__(1);" />
	          </td>
		  </tr>
        </table>
  <!--分页 begin -->
	<jsp:include page="${contextPath}/queryPage/orderHidden.html" />
	<jsp:include page="${contextPath}/queryPage/pageDiv.html" />
  <!--分页 end --> 
</form>
 <br/>
<!--页面列表 begin -->
<script type="text/javascript" >
	var myPage;
    //查询路径
	var url = "<%=contextPath%>/claim/serviceActivity/ServiceActivityManageSummarySearch/serviceActivityManageSummarySearchQuery.json";
				
	var title = null;

	var columns = [
				{header: "活动编号 ", dataIndex: 'ACTIVITY_CODE', align:'center'},
				{header: "活动名称 ",dataIndex: 'ACTIVITY_NAME' ,align:'center'},
				{header: "经销商代码 ",dataIndex: 'DEALER_CODE' ,align:'center'},
				{header: "经销商名称 ",dataIndex: 'DEALER_SHORTNAME' ,align:'center'},
				{header: "省份  ",dataIndex: 'REGION_NAME' ,align:'center'},
				{header: "进厂台次  ",dataIndex: 'IN_AMOUNT' ,align:'center'},
				{header: "活动开始日期   ",dataIndex: 'STARTDATE' ,align:'center'},
				{header: "活动结束日期",dataIndex: 'ENDDATE' ,align:'center'},
				{id:'action',header: "操作",sortable: false,dataIndex: 'ACTIVITY_ID',renderer:mySelect ,align:'center'}
		      ];
	//明细的超链接设置
	function mySelect(value,meta,record){
  		return String.format(
         "<a href=\"#\" onclick='sel(\""+record.data.ACTIVITY_ID+"\")'>[明细]</a>");
	}
	//详细页面
	function sel(value){
		OpenHtmlWindow('<%=contextPath%>/claim/serviceActivity/ServiceActivityManageSummarySearch/serviceActivitySummaryQuery.do?activityId='+value,800,500);
	}
	//清除方法
 	function clr() {
	document.getElementById('dealerCode').value = "";
   }
</script>
<!--页面列表 end -->
</body>
</html>